package com.heiye.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heiye.pojo.Club;
import com.heiye.vo.ClubDetailVO;
import com.heiye.vo.ClubShowVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ClubMapper extends BaseMapper<Club> {
    //显示所有社团信息
    public List<ClubShowVO> selectAllClub();

    //显示社团的详细信息
    ClubDetailVO selectClubByCid(@Param("clubId") int clubId);
}
